Automatic transfer of audio-related task to a smart speaker

ABSTRACT

Aspects of the present invention disclose a method for managing audio on a mobile device based on environmental factors. The method includes one or more processors determining that an audio-related task initiates on a mobile device. The method further includes determining whether a location of the mobile device is within a threshold proximity to a paired smart speaker. In response to determining that the location of the mobile device is within the threshold proximity, the method further includes determining a first set of environmental factors associated with a physical environment of the paired smart speaker based on data associated with the mobile device, the paired smart speaker, and the corresponding operating environment. The method further includes determining whether to transfer the audio-related task from the mobile device to the paired smart speaker based on analyzing of the first set of environmental factors in comparison to user preferences.

BACKGROUND OF THE INVENTION

The present invention relates generally to mobile devices, and moreparticularly to an automatic transfer of an audio-related task.

In recent years developments in playing audio from a mobile device on aspeaker over a wireless network (e.g., via Wi-Fi, Bluetooth™, etc.) havegrown. Smart speakers are stand-alone speakers, typically placed in ahome or office environment, which combine speakers with a processor anda microphone. Commercial examples of smart speakers are Amazon Echo™ andGoogle Home™. A mobile device is paired to a smart speaker so that theaudio (e.g., digital assistant commands, phone calls, music or otheraudio broadcasts, etc.) from a mobile device is routed to the smartspeaker.

A Personal Area Network (PAN) is a computer network used for datatransmission between devices. Bluetooth™ is a type of Wireless PersonalArea Network (WPAN). The Bluetooth™ technology is becoming a popularcommunication method for devices, such as mobile devices, computers, andhousehold electric appliances.

Cognitive analytics combines the use of cognitive computing andanalytics. Cognitive computing combines artificial intelligence andmachine-learning algorithms, in an approach that attempts to reproducethe behavior of the human brain. Analytics is the scientific process oftransforming data into insights for making better decisions. Cognitiveanalytics applies intelligent technologies to bring unstructured datasources within reach of analytics processes for decision making.

SUMMARY

Aspects of the present invention disclose a method, computer programproduct, and system for managing audio activity on a mobile device basedon environmental factors. The method includes one or more processorsdetermining that an audio-related task initiates on a mobile device. Themethod further includes one or more processors determining whether alocation of the mobile device is within a threshold proximity to apaired smart speaker. In response to determining that the location ofthe mobile device is within the threshold proximity to the paired smartspeaker, the method further includes one or more processors determininga first set of environmental factors associated with a physicalenvironment of the paired smart speaker based on data associated withthe mobile device, the paired smart speaker, and the correspondingoperating environment. The method further includes one or moreprocessors determining whether to transfer the audio-related task fromthe mobile device to the paired smart speaker based on an analysis ofthe first set of environmental factors in comparison to a defined set ofuser preferences.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a functional block diagram of a data processing environment,in accordance with an embodiment of the present invention.

FIG. 2 is a flowchart depicting operational steps of a program forderiving suitability of an operational environment of a smart speakerfor transfer of an audio-related task, in accordance with embodiments ofthe present invention.

FIG. 3 is a flowchart depicting operational steps of a program forcontinuing to monitor the suitability of an operating environment of asmart speaker for transfer of an audio-related task from the smartspeaker to a mobile device, in accordance with embodiments of thepresent invention.

FIG. 4 depicts a block diagram of components of a computing systemrepresentative of the mobile device and server of FIG. 1, in accordancewith an embodiment of the present invention.

DETAILED DESCRIPTION

Embodiments of the present invention allow for application of cognitiveanalytics to a smart speaker environment that creates innovativepossibilities for how a user interacts with a mobile device to managetransfers of audio-related tasks (e.g., phone calls, digital assistantcommunication, music, other audio broadcasts, etc.). Various embodimentsof the present invention utilize factors of a smart speaker environmentin proximity to a user of a mobile device to determine whether totransfer an audio-related task to a smart speaker. In response todetermining that factors of the environment indicate that transfer ofthe audio-related task is suitable, embodiments of the present inventionfacilitate the transfer of the audio-related task from a mobile deviceof the user to the smart speaker.

Some embodiments of the present invention recognize that the environmentwhere a smart speaker is present is suitable for transferring anaudio-related task from a mobile device of a user to the smart speaker.However, factors in a smart speaker environment often change that haveeffect on whether the smart speaker environment is still suitable for anaudio-related task. For example, if a smart speaker is operating in anoisy room, then transferring a call from a mobile device to a smartspeaker is not appropriate where the noise level creates an unsuitableenvironment for taking a personal call.

Implementation of embodiments of the invention may take a variety offorms, and exemplary implementation details are discussed subsequentlywith reference to the Figures.

The present invention will now be described in detail with reference tothe Figures. FIG. 1 is a functional block diagram illustrating adistributed data processing environment, generally designated 100, inaccordance with one embodiment of the present invention. FIG. 1 providesonly an illustration of one implementation and does not imply anylimitations with regard to the environments in which differentembodiments may be implemented. Many modifications to the depictedenvironment may be made by those skilled in the art without departingfrom the scope of the invention as recited by the claims.

In one embodiment, data processing environment 100 includes mobiledevice 120, smart speaker 130, and camera 140, all interconnected overnetwork 110. In an example embodiment, mobile device 120, smart speaker130, and camera 140 communicate through network 110. Network 110 can be,for example, a local area network (LAN), a telecommunications network, awide area network (WAN), such as the Internet, or any combination of thethree, and include wired, wireless, or fiber optic connections. Ingeneral, network 110 can be any combination of connections andprotocols, which will support communications between mobile device 120,smart speaker 130, and camera 140, in accordance with embodiments of thepresent invention. In an example embodiment, network 110 isrepresentative of wireless personal area network (WPAN), which provideswireless communication capabilities for mobile device 120, smart speaker130, and camera 140 in data processing environment 100. For example,mobile device 120 is paired with smart speaker 130 via a WPAN.

In various embodiments of the present invention, mobile device 120 maybe a tablet, personal digital assistant, mobile phone, or any otherdevice capable of executing computer readable program instructions, inaccordance with embodiments of the present invention. In general, mobiledevice 120 is representative of any electronic device or combination ofelectronic devices capable of executing computer readable programinstructions.

Mobile device 120 includes Global Positioning System (GPS) 122, userinterface 124, application 126, motion sensor 128, cognitive analysisprogram 200, and cognitive analysis feedback program 300. GPS 122 is aglobal navigation system that provides geolocation and time informationof an object. In one embodiment, GPS 122 provides geolocation and timeinformation of mobile device 120 to cognitive analysis program 200. Inanother embodiment, GPS 122 provides geolocation information of thepairing of mobile device 120 and smart speaker 130 to cognitive analysisprogram 200.

User interface 124 is a program that provides an interface between auser of mobile device 120 and a plurality of applications (e.g.,application 126) that reside on mobile device 120. A user interface,such as user interface 124, refers to the information (such as graphic,text, and sound) that a program presents to a user, and the controlsequences the user employs to control the program. A variety of types ofuser interfaces exist. In one embodiment, user interface 124 is agraphical user interface. A graphical user interface (GUI) is a type ofuser interface that allows users to interact with electronic devices,such as a computer keyboard and mouse, through graphical icons andvisual indicators, such as secondary notation, as opposed to text-basedinterfaces, typed command labels, or text navigation. In computing, GUIswere introduced in reaction to the perceived steep learning curve ofcommand-line interfaces which require commands to be typed on thekeyboard. The actions in GUIs are often performed through directmanipulation of the graphical elements. In another embodiment, userinterface 124 is a script or application programming interface (API).

Application 126 is a computer program designed to run on mobile device120. An application frequently serves to provide a user with similarservices accessed on personal computers (e.g., web browser, emailclient, calendar, mapping program, or playing music, other media, etc.).In one embodiment, application 126 is performing an audio-related taskon mobile device 120. In another embodiment, an application 126 receivesa voice command from a user of mobile device 120.

Motion sensor 128 is a component of mobile device 120 that utilizes anaccelerometer and gyroscope to measure the acceleration and changes invelocity of an object (i.e., mobile device 120) in space. Mobile device120 includes an on-board motion sensor 128, which detect movement ofmobile device 120. In one embodiment, motion sensor 128 detect thatmobile device 120 is moving in space. For example, cognitive analysisprogram 200 uses data of motion sensor 128 to determine movementpatterns of mobile device 120, while a user is walking and interactingwith mobile device 120.

Cognitive analysis program 200 analyzes several types of inputs (e.g.,audio, video, geo-location, movement patterns, etc.) from the physicalenvironment of smart speaker 130 to determine suitability of anoperating environment of a smart speaker for an audio-related task andto transfer the audio-related task from a mobile device (e.g., mobiledevice 120) to a smart speaker (e.g., smart speaker 130). In oneembodiment, cognitive analysis program 200 receives data inputs frommobile device 120, smart speaker 130, and camera 140, which areaccessible via a network 110, to determine suitability of the operatingenvironment of the smart speaker 130 for an audio-related task in orderto transfer the audio-related task from mobile device 120 to smartspeaker 130. Cognitive analysis feedback program 300 continues tomonitor the suitability of an operating environment of a smart speakerfor transfer of an audio-related task from smart speaker 130 to mobiledevice 120, in accordance with embodiments of the present invention.

Smart speaker 130 is a stand-alone speaker, which includes speakers, aprocessor, and a microphone. In various embodiments of the presentinvention, an individual (via mobile device 120) utilizes smart speaker130 to play audio, receive commands, detect ambient noise levels, and toconnect with networks and devices. In one embodiment, cognitive analysisprogram 200 determines that the operating environment of smart speaker130 is suitable and transfers an audio-related task of mobile device 120to smart speaker 130 over network 110. In another embodiment, smartspeaker 130 receives ambient noise data from the operating environmentof smart speaker 130 via network 110. For example, the operatingenvironment is an area within a threshold proximity (e.g., a portion ofthe physical environment) to smart speaker 130 that camera 140 and smartspeaker 130 monitor for audio and video inputs. In another example, theoperating environment of smart speaker 130 encompasses a composite ofthe conditions, circumstances, or influences that affect the ability ofthe user of mobile device 120 to utilize the capabilities of smartspeaker 130.

Camera 140 is a video camera directly or indirectly connected to adevice, a network, or a device connected to a network. In an exampleembodiment, camera 140 streams video of an area where a person or asmart speaker is present. In one embodiment, cognitive analysis program200 accesses video data of camera 140 over network 110. In anotherembodiment, cognitive analysis program 200 accesses video data of camera140 indicating that people are present in the operating environment ofsmart speaker 130. In another embodiment, cognitive analysis program 200accesses video data of camera 140 indicating that a user is holdingmobile device 120.

FIG. 2 is a flowchart depicting operational steps of cognitive analysisprogram 200, a program for deriving suitability of an operationalenvironment of a smart speaker for transfer of an audio-related task, inaccordance with embodiments of the present invention. In one embodiment,cognitive analysis program 200 initiates in response to a determinationthat an audio-related response is occurring on mobile device 120. Inanother embodiment, cognitive analysis program 200 monitors mobiledevice 120 to detect that an audio-related task is occurring on mobiledevice 120.

In step 202, cognitive analysis program 200 determines that anaudio-related task initiates on a mobile device. In various embodiments,an audio-related task is any occurrence where a mobile device employsaudio to perform a function (e.g., playing audio, conducting a phonecall, interacting with a digital assistant, etc.). In one embodiment ofthe present invention, cognitive analysis program 200 monitors activityon mobile device 120 for an audio-related task. For example, a user ofmobile device 120 receives and answers a conference call, cognitiveanalysis program 200 detects that the mobile phone application is inuse, the speakerphone function is enabled, and determines that anaudio-related tasks is occurring. In another example, a user of mobiledevice 120 accesses a music playing application (e.g., application 126)via user interface 124 and plays a song. Accordingly, cognitive analysisprogram 200 detects that user interface 124, application 126, and aspeaker of mobile device 120 is in use and determines that anaudio-related task is occurring.

In another embodiment, cognitive analysis program 200 monitors mobiledevice 120 for the occurrence of specific audio-related tasks determinedby the preferences of a user of mobile device 120. For example,cognitive analysis program 200 monitors mobile device 120 to detectopening a teleconference or music application (e.g., application 126) inaccordance with the preferences of a user of mobile device 120. Inanother example, cognitive analysis program 200 monitors mobile device120 to detect an audio-related tasks occurring on mobile device 120 at athreshold volume in accordance with the preferences of a user of mobiledevice 120. In yet another example, cognitive analysis program 200monitors mobile device 120 to detect keywords in an audio interactionwith a digital assistant in accordance with the preferences of a user ofmobile device 120.

In step 204, cognitive analysis program 200 determines a location of themobile device. In various embodiments of the present invention,cognitive analysis program 200 determines a location of a mobile deviceusing GPS, wireless local area network (WLAN), WPAN, or any combinationthereof. In one embodiment, cognitive analysis program 200 monitors GPS122 to determine a location of mobile device 120. For example, cognitiveanalysis program 200 uses data from GPS 122 to determine a location ofmobile device 120. In another embodiment, cognitive analysis program 200monitors network 110 to determine a location of mobile device 120. Forexample, cognitive analysis program 200 monitors a WLAN that smartspeaker 130 connects to, detects when mobile device 120 accesses theWLAN, and determines a location of mobile device 120. In anotherexample, cognitive analysis program 200 monitors a WPAN of smart speaker130, detects when mobile device 120 accesses the WPAN, and determines alocation of mobile device 120.

In decision step 206, cognitive analysis program 200 determines whetherthe determined location of the mobile device is within a thresholdproximity to a paired smart speaker. For example, cognitive analysisprogram 200 monitors for the location of paired smart speakers (e.g.,smart speaker 130) that are in a home or an office in relation to mobiledevice 120. In various embodiments of the present invention, a thresholdproximity is a distance at which a mobile device pairs (i.e.,establishes a wireless communication connection) with a smart speaker(i.e., a threshold proximity varies based on the capabilities of thesmart speaker when pairing with a mobile device via WLAN or WPAN).

In one embodiment, cognitive analysis program 200 uses the determinedlocation of mobile device 120 (determined in step 204) and of a locationof smart speaker 130 to determine whether mobile device 120 is within athreshold proximity of smart speaker 130. For example, cognitiveanalysis program 200 determines a GPS location of a house where a pairedsmart speaker (e.g., smart speaker 130) is located. In this example,cognitive analysis program 200 compares the determined location ofmobile device 120 (determined in step 204) with the determined locationof the house to determine whether the determined location of mobiledevice 120 is within a threshold proximity of smart speaker 130.

In another embodiment, cognitive analysis program 200 uses thedetermined location of mobile device 120 (determined in step 204), alocation of smart speaker 130, and a WPAN to determine whether mobiledevice 120 is within a threshold proximity of smart speaker 130. Forexample, cognitive analysis program 200 determines a GPS location of ahouse where a paired smart speaker (e.g., smart speaker 130) is in anoffice. In this example, cognitive analysis program 200 compares thedetermined GPS location of mobile device 120 (determined in step 204)with the determined location of the house to verify the location ofsmart speaker 130 and monitors the WPAN for communication between mobiledevice 120 and smart speaker 130. Accordingly, cognitive analysisprogram 200 determines that mobile device 120 is within a thresholdproximity of smart speaker 130 when cognitive analysis program 200detects that mobile device 120 is pairing with smart speaker 130 in theoffice via the WPAN.

In another embodiment, cognitive analysis program 200 uses the wirelesscommunication capabilities of smart speaker 130 to determine whethermobile device 120 is within a threshold proximity to smart speaker 130.For example, cognitive analysis program 200 monitors mobile device 120to determine that mobile device 120 is within a threshold proximity tosmart speaker 130. In one scenario, in response to detecting that mobiledevice 120 is pairing with smart speaker 130 via a WLAN (i.e., network110), cognitive analysis program 200 determines that mobile device 120is within a threshold proximity to smart speaker 130. In anotherscenario, in response to detecting that mobile device 120 is pairingwith smart speaker 130 via a WPAN (i.e., network 110), cognitiveanalysis program 200 determines that mobile device 120 is within athreshold proximity to smart speaker 130. In yet another scenario, inresponse to detecting that mobile device 120 is accessing the WLAN,cognitive analysis program 200 can determine that the connectivitybetween smart speaker 130 and mobile device 120 is below a threshold(i.e. no pairing) via WPAN although smart speaker 130 and mobile device120 are connected to the WLAN. Accordingly, cognitive analysis program200 determines that mobile device 120 is not within a thresholdproximity to smart speaker 130.

In response to determining that the determined location of the mobiledevice is not within the threshold proximity of the smart speaker(decision step 206, “NO” branch), cognitive analysis program 200 returnsto step 204 to determine a location of the mobile device. For example,cognitive analysis program 200 continuously monitors GPS 122 todetermine if mobile device 120 is within a threshold proximity of smartspeaker 130. In response to determining that the determined location ofthe mobile device is within the threshold proximity of the smart speaker(decision step 206, “YES” branch), cognitive analysis program 200determines environmental factors associated with the mobile device andthe smart speaker (step 208).

In step 208, cognitive analysis program 200 determines environmentalfactors associated with a mobile device and a smart speaker.Environmental factors are identifiable elements that affect theperformance of an audio-related task in the operating environment of asmart speaker and entails a composite of elements that change theoperating environment. For example, audio usage and movement patterns ofthe mobile device, activities of the mobile device user and presence ofidentified people and spoken conversation and ambient noise are some ofthe environmental factors that affect the operating environment of asmart speaker. In one embodiment, cognitive analysis program 200determines environmental factors associated with an operatingenvironment of smart speaker 130 by monitoring mobile device 120, smartspeaker 130, and camera 140. For example, cognitive analysis program 200monitors mobile device 120 for audio usage and movement patterns ofmobile device 120. In another example, cognitive analysis program 200monitors smart speaker 130 for spoken conversations and ambient noise inan operating environment of smart speaker 130, and monitors camera 140for activities of a user of mobile device 120 and for people physicallypresent in an operating environment of smart speaker 130. The monitoringactivities enables cognitive analysis program 200 to determineenvironmental factors associated with an operational environment ofsmart speaker 130.

In one embodiment, cognitive analysis program 200 monitors the operatingenvironment of mobile device 120 and smart speaker 130 to determineenvironmental factors associated with audio usage within the operatingenvironment. The audio usage environmental factor is a determination ofhow the user of a mobile device is interacting the mobile device for anaudio-related task. For example, cognitive analysis program 200determines that an audio usage factor exists within the operatingenvironment when cognitive analysis program 200 detects audio activityon an earpiece of mobile device 120 that a user of mobile device 120 isusing to conduct a conference call. In another example, cognitiveanalysis program 200 determines that an audio usage factor exists in theoperating environment when cognitive analysis program 200 detects audioactivity on application 126 and the speaker of mobile device 120, wherea user of mobile device 120 is playing a song using mobile device 120.In another example, cognitive analysis program 200 determines that anaudio usage factor exists in the operating environment when cognitiveanalysis program 200 detects audio activity on user interface 124 andmicrophone of mobile device 120, where a user of mobile device 120 viaaudio interaction to give commands to a digital personal assistant.

In another embodiment, cognitive analysis program 200 monitors motionsensor 128 of mobile device 120 to determine environmental factorsassociated with movement patterns within an operating environment ofmobile device 120 and smart speaker 130. In an example embodiment,cognitive analysis program 200 monitors motion sensor 128 of mobiledevice 120 to determine the movement patterns of mobile device 120 whilein the operating environment of mobile device 120. For example,cognitive analysis program 200 detects activity on motion sensor 128 anddetermines that the movement pattern indicates that the user of mobiledevice 120 is walking. In another example, cognitive analysis program200 detects activity on motion sensor 128 and determines that themovement pattern indicates that the user of mobile device 120 is walkingand swinging mobile device 120.

In one embodiment, cognitive analysis program 200 monitors smart speaker130 to determine environmental factors associated with spokenconversation within an operating of environment of mobile device 120 andsmart speaker 130. For example, cognitive analysis program 200 usesaudio analysis of a microphone of smart speaker 130 to detect houseguests having a conversation in the operating environment of smartspeaker 130. In another example, cognitive analysis program 200 utilizesNatural Language Processing (NLP) to derive a topic of a conference callperformed on mobile device 120. In yet another example, cognitiveanalysis program 200 uses NLP to derive the topic of a conversation ofhouse guests in the operating environment of smart speaker 130, andutilizes voice identification analysis to identify a specific party of aconversation.

In another embodiment, cognitive analysis program 200 monitors smartspeaker 130 to determine environmental factors associated with ambientnoise within an operating of environment of mobile device 120 and smartspeaker 130. For example, cognitive analysis program 200 uses amicrophone of smart speaker 130 to detect multiple conversations takingplace in the operating environment of smart speaker 130. In anotherexample, cognitive analysis program 200 detects ambient noise using amicrophone of smart speaker 130 and uses audio analysis to determinethat a television is playing in the operating environment of smartspeaker 130.

In one embodiment, cognitive analysis program 200 monitors camera 140 todetermine environmental factors associated with people physicallypresent in the operating environment of smart speaker 130. For example,cognitive analysis program 200 uses visual recognition to determine thata person is present in the operating environment of smart speaker 130.In another example, cognitive analysis program 200 uses visualrecognition to determine the identity of a person present in theoperating environment of smart speaker 130.

In another embodiment, cognitive analysis program 200 monitors camera140 to determine environmental factors associated with the activities ofthe user of mobile device 120. For example, cognitive analysis program200 uses visual analytics to determine that a user of mobile device 120is walking with a bag in hand. In another example, cognitive analysisprogram 200 uses visual analytics to determine that a user of mobiledevice 120 is walking out of the operating environment of smart speaker130.

In decision step 210, cognitive analysis program 200 determines whetherthe operating environment of the smart speaker is suitable for anaudio-related task based on the environmental factors present in theoperating environment of the smart speaker. Cognitive analysis program200 considers user activities, attributes of background noise levels,and user privacy to determine whether the operating environment issuitable for an audio-related task. In one embodiment, cognitiveanalysis program 200 determines whether an operating environment ofsmart speaker 130 is suitable for an audio-related task based on theenvironmental factors present in the operating environment of smartspeaker 130. For example, cognitive analysis program 200 uses theenvironmental factors (determined in step 208) to determine whether theoperating environment of smart speaker 130 is suitable for anaudio-related task.

In one embodiment, cognitive analysis program 200 determines whether anoperating environment of smart speaker 130 is suitable for anaudio-related task based on environmental factors and activities of auser of mobile device 120. For example, cognitive analysis program 200determines a user of mobile device 120 is on a conference call fromcognitive analysis program 200 detecting that the phone application(e.g., application 126) of mobile device 120 is in use, the speakerphonefunction of mobile device 120 is on, and the movement patterns receivedfrom motion sensor 128 indicates the user of mobile device 120 isholding mobile device 120 while walking into a house. Additionally,cognitive analysis program 200 uses video analytics of camera 140 todetect the user of mobile device 120 is holding mobile device 120 in onehand and grocery bags in the other hand. Accordingly, cognitive analysisprogram 200 determines that operating environment of smart speaker 130is suitable for the conference call, based on the user of mobile device120 regaining the use of one hand to carry the grocery bags.

In one embodiment, cognitive analysis program 200 determines whether anoperating environment of smart speaker 130 is suitable for anaudio-related task based on environmental factors and attributes ofbackground noise levels in the operating environment of smart speaker130. For example, cognitive analysis program 200 determines a user ofmobile device 120 is on a conference call, and that multipleconversations are occurring in the operating environment of smartspeaker 130 using NLP and a microphone of smart speaker 130.Accordingly, cognitive analysis program 200 determines that operatingenvironment of smart speaker 130 is not suitable for the conferencecall, based on multiple conversations in the operating environmentincreasing the noise level and the ability of the user of mobile device120 to efficiently conduct the conference call. In another example,cognitive analysis program 200 determines a user of mobile device 120 ison a conference call, and that a television is playing in the operatingenvironment using audio analysis of a microphone of smart speaker 130.Accordingly, cognitive analysis program 200 determines that operatingenvironment of smart speaker 130 is not suitable for the conferencecall, based on the television increasing the noise level and ability ofthe user of mobile device 120 to efficiently to conduct the conferencecall.

In one embodiment, cognitive analysis program 200 determines whether anoperating environment of smart speaker 130 is suitable for anaudio-related task based on environmental factors and privacy of a userof mobile device 120. In another embodiment, cognitive analysis program200 determines the identity of people present and identifies theconversations between the people to determine whether the operatingenvironment of smart speaker 130 is suitable for an audio-related task.In an example embodiment, cognitive analysis program 200 uses NLP andvoice identification analysis to derive the substance of conversationsthat people within the operating environment of smart speaker 130 arehaving. In another embodiment, cognitive analysis program 200 uses NLPand voice identification analysis to derive the topic a conversationthat the user of mobile device 120 is having. In yet another embodiment,cognitive analysis program 200 uses camera 140 to determine the identityof people physically present within the operating environment of smartspeaker 130. For example, cognitive analysis program 200 determines thata user of mobile device 120 is ordering a gift for a person that isphysically present in the operating environment of smart speaker 130.Accordingly, cognitive analysis program 200 determines that theoperating environment is not suitable for the current call, based on thesensitivity of the topic of the call with respect to the personidentified in the operating environment.

In an example embodiment, if cognitive analysis program 200 determinesthat at least one environmental factors exists within the operatingenvironment of smart speaker 130 (step 208), then cognitive analysisprogram 200 weights the environmental factors to determine suitabilityof the operating environment of smart speaker 130 for an audio-relatedtask. In various embodiments, cognitive analysis program 200 assignseach existing environmental factor a numerical weight. For example,cognitive analysis program 200 calculates the weight as a measure of apreference of the user (e.g., calculated on a scale of 0 to 100 percentaccording to defined user preferences). In one embodiment, cognitiveanalysis program 200 determines individual weights for a plurality ofenvironmental factors based on information including, but not limitedto: topics of spoken conversations, user preference of ambient noiselevel, type of audio-related task, and/or historical responses. Forexample, after many negative responses of the user (e.g., the userdeclining to transfer an audio-related task), cognitive analysis program200 determines an updated threshold limit based on environmental factorsthat are present during negative responses of the user. In one scenario,cognitive analysis program 200 increases the threshold limitcorresponding to background noise environmental factors based on thenegative responses of the user.

In another example, cognitive analysis program 200 can utilize a derivedtopic of a conversation of a conference call and assign a weight basedon the preference of the user (e.g., using historical responses awork-related call is assigned a higher weight than a personal call). Inanother embodiment, a user predefines rules such that a particularfactor causes cognitive analysis program 200 to assign the highestweight to a particular factor and decrease the weight to all others. Inthis embodiment, a user can predefine rules that when a particularidentified person is present a higher weight is assigned to the privacyenvironmental factor such that the audio-related task should not betransferred to a smart speaker.

In another embodiment, cognitive analysis program 200 compares weightsof environmental factors to a user preference threshold weight todetermine whether the operating environment of smart speaker 130 issuitable for an audio-related task. For example, cognitive analysisprogram 200 detects chatter in a room where the user of mobile device120 walked into conducting a conference call, and determines that thechatter is between two people present in the room. Additionally,cognitive analysis program 200 assigns weights to the conference call,the two people present, and the ambient noise level of the conversation.Furthermore, cognitive analysis program 200 determines the weightassigned to the identity of the people present and the topic of theconference call do not exceed the user preference threshold weight forthe privacy environmental factor. Moreover, cognitive analysis program200 determines that the weight assigned to the ambient noise level ofthe chatter does not exceed the user preference threshold weight for thebackground noise environmental factor. Accordingly, cognitive analysisprogram 200 determines that the operating environment of smart speaker130 is suitable for the conference call of the user of mobile device 120based on the comparison of the assigned weights of the environmentalfactors and the user preference threshold.

In response to determining that the operating environment of the smartspeaker is suitable for an audio-related task based on the environmentalfactors present (decision step 210, “YES” branch), cognitive analysisprogram 200 transfers the audio-related task to the smart speaker (step212).

In step 212, cognitive analysis program 200 transfers an audio-relatedtask from a mobile device to a smart speaker. In one embodiment,cognitive analysis program 200 transfers an audio-related task frommobile device 120 to smart speaker 130. For example, cognitive analysisprogram 200 transfers a song playing on application 126 of mobile device120 to smart speaker 130 when the operating environment of smart speaker130 is suitable for an audio-related task. In another embodiment,cognitive analysis program 200 transfers an audio-related task frommobile device 120 to smart speaker 130 via network 110. For example,cognitive analysis program 200 transfers a song playing on mobile device120 to smart speaker 130 via WPAN and smart speaker 130 continues toplay the song. In another example, cognitive analysis program 200transfers a song playing on mobile device 120 to smart speaker 130 viaWLAN and smart speaker 130 continues to play the song.

FIG. 3 is a flowchart depicting operational steps of cognitive analysisfeedback program 300, continuing to monitor the suitability of anoperating environment of a smart speaker for transfer of anaudio-related task from the smart speaker to a mobile device, inaccordance with embodiments of the present invention. In an exampleembodiment, cognitive analysis feedback program 300 initiates inresponse to transferring an audio-related task from mobile device 120 tosmart speaker 130 (step 212 of cognitive analysis program 200). Invarious embodiments, suitability of the operating environment for anaudio-related task changes with the addition, deduction, or modificationof environmental factors. In another example embodiment, cognitiveanalysis feedback program 300 initiates in response to mobile device 120playing audio on smart speaker 130.

In step 302, cognitive analysis feedback program 300 determinesenvironmental factors associated with a mobile device, smart speaker,and camera. In one embodiment, cognitive analysis feedback program 300determines environmental factors associated with mobile device 120,smart speaker 130, and camera 140 present in an operating environment ofmobile device 120 and smart speaker 130. For example, cognitive analysisfeedback program 300 monitors mobile device 120 for audio usage andmovement patterns, smart speaker 130 for spoken conversations andambient noise, and camera 140 for people and activities of a user ofmobile device 120 to determine environmental factors of an operatingenvironment.

In one embodiment, cognitive analysis feedback program 300 monitorsaudio usage and movement patterns of mobile device 120, smart speaker130 for spoken conversation and ambient noise, and camera 140 foractivities of a user of mobile device 120 and people physically presentin an operating environment to detect changes in environmental factorsassociated with an operating environment.

In another embodiment, cognitive analysis feedback program 300 monitorsmobile device 120 to determine environmental factors associated withaudio usage and movement patterns of a user of mobile device 120interacting with mobile device 120. For example, cognitive analysisfeedback program 300 uses NLP to detect that a user of mobile device 120is talking about work related contract over smart speaker 130 anddetermines that an additional conversation topic is associated with theaudio usage environmental factor. In another example, cognitive analysisfeedback program 300 monitors motion sensor 128 to detect that mobiledevice 120 is no longer stationary and is now moving out of theoperating environment of smart speaker 130. Further, cognitive analysisfeedback program 300 determines that a different movement pattern isassociated with the environmental factor of mobile device 120.

In another embodiment, cognitive analysis feedback program 300 monitorssmart speaker 130 to determine environmental factors associated withspoken conversation and noise level in the operating environment ofsmart speaker 130. For example, cognitive analysis feedback program 300uses a microphone of smart speaker 130 to detect an increase in noiselevel and uses NLP to determine that multiple conversations are nowtaking place in the operating environment of smart speaker 130. Inanother example, cognitive analysis feedback program 300 uses amicrophone of smart speaker 130 to detect an increase in noise level anduses audio analysis to determine that a television in use in theoperating environment of smart speaker 130.

In another embodiment, cognitive analysis feedback program 300 monitorscamera 140 to determine environmental factors associated with theactivities of a user of mobile device 120 and people present in theoperating environment of smart speaker 130. For example, cognitiveanalysis feedback program 300 uses video data of camera 140 to determinethat another person is now physically present in the operatingenvironment of smart speaker 130 and determines the identity of the newperson present in the operating environment of smart speaker 130 usingvideo recognition. In another example, cognitive analysis feedbackprogram 300 uses video data of camera 140 to determine that a user ofmobile device 120 is walking with mobile device 120 and determines thata user of mobile device 120 now has bag in his hand while walking usingvisual analytics.

In decision step 304, cognitive analysis feedback program 300 determineswhether the operating environment of the smart speaker is no longersuitable for an audio-related task based on the environmental factors inthe operating environment of the smart speaker. Cognitive analysisprogram 200 considers user activities, attributes of background noiselevels, and user privacy to determine whether the operating environmentis no longer suitable for an audio-related task. In one embodiment,cognitive analysis feedback program 300 determines whether an operatingenvironment of smart speaker 130 is no longer suitable for anaudio-related task based on the environmental factors in the operatingenvironment of smart speaker 130. For example, cognitive analysisfeedback program 300 uses the environmental factors (determined in step302) to determine whether the operating environment of smart speaker 130is no longer suitable for an audio-related task to remain on smartspeaker 130.

In one embodiment, cognitive analysis feedback program 300 determineswhether an operating environment of smart speaker 130 is no longersuitable for an audio-related task based on environmental factors andactivities of a user of mobile device 120. For example, cognitiveanalysis feedback program 300 determines a user of mobile device 120 ison a conference call from cognitive analysis feedback program 300detecting that the phone application (application 126) of mobile device120 is in use, the speaker phone function of mobile device 120 is on,and the movement patterns received from motion sensor 128 indicates theuser of mobile device 120 is holding mobile device 120 while walking outof the operating environment of smart speaker 130. Additionally,cognitive analysis feedback program 300 uses video analytics of camera140 to determine the user of mobile device 120 is holding mobile device120 in one hand and is no longer holding a grocery bag in the otherhand. Accordingly, cognitive analysis feedback program 300 determinesthat operating environment of smart speaker 130 is no longer suitablefor the conference call, based on the user of mobile device 120 isinteracting with mobile device 120 and leaving the operating environmentof smart speaker 130.

In one embodiment, cognitive analysis feedback program 300 determineswhether an operating environment of smart speaker 130 is no longersuitable for an audio-related task based on environmental factors andattributes of noise levels in the operating environment of smart speaker130. For example, cognitive analysis feedback program 300 determinesthat a user of mobile device 120 is conducting a conference call anddetects that multiple conversations are occurring in the operatingenvironment of smart speaker 130 using a microphone of smart speaker 130and NLP. Accordingly, cognitive analysis feedback program 300 determinesthat the operating environment of smart speaker 130 is no longersuitable for the audio-related task based on the noise level of theconversations in the background. In another example, cognitive analysisfeedback program 300 determines that a user of mobile device 120 isconducting a conference call. Additionally, cognitive analysis feedbackprogram 300 determines that a person in the operating environment ofsmart speaker 130 is watching television using audio analysis of amicrophone of smart speaker 130 and video analytics of camera 140.Accordingly, cognitive analysis program 200 determines that operatingenvironment of smart speaker 130 is not suitable for the conference callbased on noise level of the television in the operating environment.

In one embodiment, cognitive analysis feedback program 300 determineswhether an operating environment of smart speaker 130 is no longersuitable for an audio-related task based on environmental factors andprivacy of a user of mobile device 120. In an example embodiment,cognitive analysis feedback program 300 determines the topic ofconversations that people within an operating environment of smartspeaker 130 are having using NLP and voice identification analysis.Further, cognitive analysis feedback program 300 determines the topic ofthe conversation that the user of mobile device 120 is having using NLPand voice identification. Additionally, cognitive analysis feedbackprogram 300 determines the identity of people physically present withinthe operating environment of smart speaker 130 using camera 140 andvisual recognition. For example, cognitive analysis feedback program 300determines that a user of mobile device 120 is ordering a gift for anidentified person that is physically present in the operatingenvironment of smart speaker 130. Accordingly, cognitive analysisfeedback program 300 determines that the operating environment of smartspeaker 130 is no longer suitable for the gift call based on thesensitivity of the call topic and person present. In another example,cognitive analysis feedback program 300 detects an alert of anothermobile device attempting to pair with smart speaker 130 and determinesthat another person is approaching a bedroom containing smart speaker130. Accordingly, cognitive analysis feedback program 300 determinesthat the operating environment of smart speaker 130 is no longersuitable for the audio-related task based on the indication that anotherperson is approaching a private area (i.e., bedroom).

In response to determining that an operating environment of smartspeaker 130 is suitable for an audio-related task based on environmentalfactors (decision step 304, “NO” branch), cognitive analysis feedbackprogram 300 returns to step 302 to continue to monitor and determine theenvironmental factors of associated with the mobile device and smartspeaker. In one embodiment, cognitive analysis feedback program 300continues to monitor mobile device 120, smart speaker 130, and camera140 to determine the environmental factors of an operating environmentof smart speaker. For example, cognitive analysis feedback program 300continues to monitor the audio usage and movement patterns of mobiledevice 120, the attributes of noise levels in the operating environmentof smart speaker 130, and the activities of the user of mobile device120 and people physically present in the operating environment of smartspeaker 130. In another example, cognitive analysis feedback program 300continues to determine the environmental factors to determine whetherthe operating environment of smart speaker 130 is no longer suitable foran audio-related task.

In response to determining that an operating environment of smartspeaker 130 is no longer suitable for an audio-related task based onenvironmental factors (decision step 304, “YES” branch), cognitiveanalysis feedback program 300 transfers the audio-related task to themobile device (step 306).

In step 306, cognitive analysis feedback program 300 transfers anaudio-related task from a smart speaker to a mobile device. In oneembodiment, cognitive analysis feedback program 300 transfers anaudio-related task from smart speaker 130 to mobile device 120. Forexample, cognitive analysis feedback program 300 transfers a songplaying on smart speaker 130 to mobile device 120 when the operatingenvironment of smart speaker 130 is no longer suitable for anaudio-related task. In another embodiment, cognitive analysis feedbackprogram 300 transfers an audio-related task from smart speaker 130 tomobile device 120 via network 110. For example, cognitive analysisfeedback program 300 transfers a song playing on smart speaker 130 tomobile device 120 via WPAN and mobile device 120 continues to play thesong. In another example, cognitive analysis feedback program 300transfers a song playing on smart speaker 130 to mobile device 120 viaWLAN and mobile device 120 continues to play the song.

FIG. 4 depicts computer system 400, which is representative of mobiledevice 120, in accordance with an illustrative embodiment of the presentinvention. It should be appreciated that FIG. 4 provides only anillustration of one implementation and does not imply any limitationswith regard to the environments in which different embodiments may beimplemented. Many modifications to the depicted environment may be made.Computer system 400 includes processor(s) 401, cache 403, memory 402,persistent storage 405, communications unit 407, input/output (I/O)interface(s) 406, and communications fabric 404. Communications fabric404 provides communications between cache 403, memory 402, persistentstorage 405, communications unit 407, and input/output (I/O)interface(s) 406. Communications fabric 404 can be implemented with anyarchitecture designed for passing data and/or control informationbetween processors (such as microprocessors, communications and networkprocessors, etc.), system memory, peripheral devices, and any otherhardware components within a system. For example, communications fabric404 can be implemented with one or more buses or a crossbar switch.

Memory 402 and persistent storage 405 are computer readable storagemedia. In this embodiment, memory 402 includes random access memory(RAM). In general, memory 402 can include any suitable volatile ornon-volatile computer readable storage media. Cache 403 is a fast memorythat enhances the performance of processor(s) 401 by holding recentlyaccessed data, and data near recently accessed data, from memory 402.

Program instructions and data (e.g., software and data 410) used topractice embodiments of the present invention may be stored inpersistent storage 405 and in memory 402 for execution by one or more ofthe respective processor(s) 401 via cache 403. In an embodiment,persistent storage 405 includes a magnetic hard disk drive.Alternatively, or in addition to a magnetic hard disk drive, persistentstorage 405 can include a solid state hard drive, a semiconductorstorage device, a read-only memory (ROM), an erasable programmableread-only memory (EPROM), a flash memory, or any other computer readablestorage media that is capable of storing program instructions or digitalinformation.

The media used by persistent storage 405 may also be removable. Forexample, a removable hard drive may be used for persistent storage 405.Other examples include optical and magnetic disks, thumb drives, andsmart cards that are inserted into a drive for transfer onto anothercomputer readable storage medium that is also part of persistent storage405. Software and data 410 can be stored in persistent storage 405 foraccess and/or execution by one or more of the respective processor(s)401 via cache 403. With respect to mobile device 120, software and data410 includes GPS 122, user interface 124, application 126, cognitiveanalysis program 200, and cognitive analysis feedback program 300.

Communications unit 407, in these examples, provides for communicationswith other data processing systems or devices. In these examples,communications unit 407 includes one or more network interface cards.Communications unit 407 may provide communications through the use ofeither or both physical and wireless communications links. Programinstructions and data (e.g., software and data 410) used to practiceembodiments of the present invention may be downloaded to persistentstorage 405 through communications unit 407.

I/O interface(s) 406 allows for input and output of data with otherdevices that may be connected to each computer system. For example, I/Ointerface(s) 406 may provide a connection to external device(s) 408,such as a keyboard, a keypad, a touch screen, and/or some other suitableinput device. External device(s) 408 can also include portable computerreadable storage media, such as, for example, thumb drives, portableoptical or magnetic disks, and memory cards. Program instructions anddata (e.g., software and data 410) used to practice embodiments of thepresent invention can be stored on such portable computer readablestorage media and can be loaded onto persistent storage 405 via I/Ointerface(s) 406. I/O interface(s) 406 also connect to display 409.

Display 409 provides a mechanism to display data to a user and may be,for example, a computer monitor.

The programs described herein are identified based upon the applicationfor which they are implemented in a specific embodiment of theinvention. However, it should be appreciated that any particular programnomenclature herein is used merely for convenience, and thus theinvention should not be limited to use solely in any specificapplication identified and/or implied by such nomenclature.

The present invention may be a system, a method, and/or a computerprogram product at any possible technical detail level of integration.The computer program product may include a computer readable storagemedium (or media) having computer readable program instructions thereonfor causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, configuration data for integrated circuitry, oreither source code or object code written in any combination of one ormore programming languages, including an object oriented programminglanguage such as Smalltalk, C++, or the like, and procedural programminglanguages, such as the “C” programming language or similar programminglanguages. The computer readable program instructions may executeentirely on the user's computer, partly on the user's computer, as astand-alone software package, partly on the user's computer and partlyon a remote computer or entirely on the remote computer or server. Inthe latter scenario, the remote computer may be connected to the user'scomputer through any type of network, including a local area network(LAN) or a wide area network (WAN), or the connection may be made to anexternal computer (for example, through the Internet using an InternetService Provider). In some embodiments, electronic circuitry including,for example, programmable logic circuitry, field-programmable gatearrays (FPGA), or programmable logic arrays (PLA) may execute thecomputer readable program instructions by utilizing state information ofthe computer readable program instructions to personalize the electroniccircuitry, in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the blocks may occur out of theorder noted in the Figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration, but are not intendedto be exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the invention.The terminology used herein was chosen to best explain the principles ofthe embodiment, the practical application or technical improvement overtechnologies found in the marketplace, or to enable others of ordinaryskill in the art to understand the embodiments disclosed herein.

What is claimed is:
 1. A method for managing audio activity on a mobiledevice based on environmental factors, the method comprising:determining, by one or more processors, that an audio-related taskinitiates on a mobile device; determining, by one or more processors,whether a location of the mobile device is within a threshold proximityto a paired smart speaker; in response to determining that the locationof the mobile device is within the threshold proximity to the pairedsmart speaker, determining, by one or more processors, a first set ofenvironmental factors associated with a physical environment proximatethe paired smart speaker based on data associated with the mobiledevice, the paired smart speaker, and the corresponding operatingenvironment, wherein the first set of environmental factors includedetected indications of sound within the physical environment proximateto the paired smart speaker; and determining, by one or more processors,whether to transfer the audio-related task from the mobile device to thepaired smart speaker based on an analysis of the first set ofenvironmental factors in comparison to a defined set of userpreferences.
 2. The method of claim 1, further comprising: in responseto determining to transfer the audio-related task from the mobile deviceto the paired smart speaker based on analysis of the first set ofenvironmental factors in comparison to a defined set of userpreferences, transferring, by one or more processors, the audio-relatedtask from the mobile device to the paired smart speaker.
 3. The methodof claim 1: wherein the audio-related task is selected from the groupconsisting of playing audio on the mobile device, conducting a phonecall on the mobile device, and interacting with a digital personalassistant on the mobile device, and wherein the defined set of userpreferences includes user preferences selected from the group consistingof preferences for particular audio-related tasks on the mobile device,indications of activities of a user in the physical environment of thepaired smart speaker, attributes of background noise levels, and userprivacy preferences.
 4. The method of claim 1, wherein determiningwhether a location of the mobile device is threshold proximity to apaired smart speaker comprises: determining, by one or more processors,whether the mobile device is within range of a Wireless Personal AreaNetwork (WPAN) of the paired smart speaker.
 5. The method of claim 1,wherein determining the first set of environmental factors associatedwith the physical environment of the paired smart speaker based on dataassociated with the mobile device, the paired smart speaker, and thecorresponding operating environment, further comprises: determining, byone or more processors, the first set of environmental factors based ona video stream received from a camera within the physical environment ofthe paired smart speaker, wherein environmental factors determined fromthe video stream individuals within the physical environment andactivities performed by the user within the physical environment.
 6. Themethod of claim 1, wherein the determined first set of environmentalfactors includes environmental factors selected from the groupconsisting of a noise level within the physical environment of thepaired smart speaker, indications of ambient noise within the physicalenvironment, and content of spoken conversations within the physicalenvironment.
 7. The method of claim 2, further comprising: in responseto transferring the audio-related task from the mobile device to thepaired smart speaker, determining, by one or more processors, a secondset of environmental factors associated with the physical environment ofthe paired smart speaker based on data associated with the mobiledevice, the paired smart speaker, and the corresponding operatingenvironment; and determining, by one or more processors, whether totransfer the audio-related task from the paired smart speaker to themobile device based on an analysis of the second set of environmentalfactors in comparison to the defined set of user preferences.
 8. Acomputer program product for managing audio activity on a mobile devicebased on environmental factors, the computer program product comprising:one or more computer readable storage media and program instructionsstored on the one or more computer readable storage media, the programinstructions comprising: program instructions to determine that anaudio-related task initiates on a mobile device; program instructions todetermine whether a location of the mobile device is within a thresholdproximity to a paired smart speaker; in response to determining that thelocation of the mobile device is within the threshold proximity to thepaired smart speaker, program instructions to determine a first set ofenvironmental factors associated with a physical environment proximatethe paired smart speaker based on data associated with the mobiledevice, the paired smart speaker, and the corresponding operatingenvironment, wherein the first set of environmental factors includedetected indications of sound within the physical environment proximateto the paired smart speaker; and program instructions to determinewhether to transfer the audio-related task from the mobile device to thepaired smart speaker based on an analysis of the first set ofenvironmental factors in comparison to a defined set of userpreferences.
 9. The computer program product of claim 8, furthercomprising program instructions, stored on the one or more computerreadable storage media, to: in response to determining to transfer theaudio-related task from the mobile device to the paired smart speakerbased on analysis of the first set of environmental factors incomparison to a defined set of user preferences, transfer theaudio-related task from the mobile device to the paired smart speaker.10. The computer program product of claim 8: wherein the audio-relatedtask is selected from the group consisting of playing audio on themobile device, conducting a phone call on the mobile device, andinteracting with a digital personal assistant on the mobile device, andwherein the defined set of user preferences includes user preferencesselected from the group consisting of preferences for particularaudio-related tasks on the mobile device, indications of activities of auser in the physical environment of the paired smart speaker, attributesof background noise levels, and user privacy preferences.
 11. Thecomputer program product of claim 8, wherein the program instructions todetermine whether a location of the mobile device is within a thresholdproximity to a paired smart speaker further comprise programinstructions to: determine whether the mobile device is within range ofa Wireless Personal Area Network (WPAN) of the paired smart speaker. 12.The computer program product of claim 8, wherein the programinstructions to determine a first set of environmental factorsassociated with a physical environment of the paired smart speaker basedon data associated with the mobile device, the paired smart speaker, andthe corresponding operating environment further comprise programinstructions to: determine the first set of environmental factors basedon a video stream received from a camera within the physical environmentof the paired smart speaker, wherein environmental factors determinedfrom the video stream individuals within the physical environment andactivities performed by the user within the physical environment. 13.The computer program product of claim 8, wherein the determined firstset of environmental factors includes environmental factors selectedfrom the group consisting of a noise level within the physicalenvironment of the paired smart speaker, indications of ambient noisewithin the physical environment, and content of spoken conversationswithin the physical environment.
 14. The computer program product ofclaim 9, further comprising program instructions, stored on the one ormore computer readable storage media, to: in response to transferringthe audio-related task from the mobile device to the paired smartspeaker, determine a second set of environmental factors associated withthe physical environment of the paired smart speaker based on dataassociated with the mobile device, the paired smart speaker, and thecorresponding operating environment; and determine whether to transferthe audio-related task from the paired smart speaker to the mobiledevice based on an analysis of the second set of environmental factorsin comparison to the defined set of user preferences.
 15. A computersystem for managing audio activity on a mobile device based onenvironmental factors, the computer system comprising: one or morecomputer processors; one or more computer readable storage media; andprogram instructions stored on the computer readable storage media forexecution by at least one of the one or more processors, the programinstructions comprising: program instructions to determine that anaudio-related task initiates on a mobile device; program instructions todetermine whether a location of the mobile device is within a thresholdproximity to a paired smart speaker; in response to determining that thelocation of the mobile device is within the threshold proximity to thepaired smart speaker, program instructions to determine a first set ofenvironmental factors associated with a physical environment proximatethe paired smart speaker based on data associated with the mobiledevice, the paired smart speaker, and the corresponding operatingenvironment, wherein the first set of environmental factors includedetected indications of sound within the physical environment proximateto the paired smart speaker; and program instructions to determinewhether to transfer the audio-related task from the mobile device to thepaired smart speaker based on an analysis of the first set ofenvironmental factors in comparison to a defined set of userpreferences.
 16. The computer system of claim 15, further comprisingprogram instructions, stored on the computer readable storage media forexecution by at least one of the one or more processors, to: in responseto determining to transfer the audio-related task from the mobile deviceto the paired smart speaker based on analysis of the first set ofenvironmental factors in comparison to a defined set of userpreferences, transfer the audio-related task from the mobile device tothe paired smart speaker.
 17. The computer system of claim 15: whereinthe audio-related task is selected from the group consisting of playingaudio on the mobile device, conducting a phone call on the mobiledevice, and interacting with a digital personal assistant on the mobiledevice, wherein the defined set of user preferences includes userpreferences selected from the group consisting of preferences forparticular audio-related tasks on the mobile device, indications ofactivities of a user in the physical environment of the paired smartspeaker, attributes of background noise levels, and user privacypreferences, and wherein the determined first set of environmentalfactors includes environmental factors selected from the groupconsisting of a noise level within the physical environment of thepaired smart speaker, indications of ambient noise within the physicalenvironment, and content of spoken conversations within the physicalenvironment.
 18. The computer system of claim 15, wherein the programinstructions to determine whether a location of the mobile device iswithin a threshold proximity to a paired smart speaker further compriseprogram instructions to: determine whether the mobile device is withinrange of a Wireless Personal Area Network (WPAN) of the paired smartspeaker.
 19. The computer system of claim 15, wherein the programinstructions to determine a first set of environmental factorsassociated with a physical environment of the paired smart speaker basedon data associated with the mobile device, the paired smart speaker, andthe corresponding operating environment further comprise programinstructions to: determine the first set of environmental factors basedon a video stream received from a camera within the physical environmentof the paired smart speaker, wherein environmental factors determinedfrom the video stream individuals within the physical environment andactivities performed by the user within the physical environment. 20.The computer system of claim 16, further comprising programinstructions, stored on the one or more computer readable storage media,to: in response to transferring the audio-related task from the mobiledevice to the paired smart speaker, determine a second set ofenvironmental factors associated with the physical environment of thepaired smart speaker based on data associated with the mobile device,the paired smart speaker, and the corresponding operating environment;and determine whether to transfer the audio-related task from the pairedsmart speaker to the mobile device based on an analysis of the secondset of environmental factors in comparison to the defined set of userpreferences.